package Assignment;

import cn.tedu.submarine.Mine;

import javax.swing.ImageIcon;

public class MineSubmarine extends SeaObject{
    MineSubmarine(){
        super(63,19);
    }

    public void move() {
        x += speed;
    }
    public ImageIcon getImage(){
        return Images.mineSubm;
    }
    public cn.tedu.submarine.Mine shootMine(){
        int x = this.x + this.width;
        int y = this.y - 5;
        return new Mine(x,y);
    }
}
